package com.lhh.core;

public class JsonResult<E> {
    private Integer state;
    private  String message;
    private E data;
    private String userName;
    private String tel;
    private String email;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public E getData() {
        return data;
    }

    public void setData(E data) {
        this.data = data;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public JsonResult(){
        super();
    }
    public JsonResult(Integer state) {
        super();
        this.state = state;
    }

    public JsonResult(Throwable e) {
        super();
        this.message = e.getMessage();
    }

    public JsonResult(Integer state, E data) {
        super();
        this.state=state;
        this.data=data;
    }
    public JsonResult(Integer state,String userName,String tel,String email) {
        super();
        this.state=state;
        this.userName = userName;
        this.tel=tel;
        this.email = email;
    }
}
